home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / packer / mcvert / sup.c < prev    next >
C/C++ Source or Header  |  1994-12-17  |  312b  |  25 lines

  1. #include <stdlib.h>
  2. #include <time.h>
  3. #include <sys/timeb.h>
  4.  
  5. void bzero(char *p, int n)
  6. {
  7.     memset(p, '\0', n);
  8. }
  9.  
  10. void bcopy(char *s, char *d, int n)
  11. {
  12.     memmove(d, s, n);
  13. }
  14.  
  15. int ftime(struct timeb *tp)
  16. {
  17.     time_t now;
  18.  
  19.     time(&now);
  20.     tp->time     = now;
  21.     tp->millitm  = 0;
  22.     tp->timezone = 0;
  23.     tp->dstflag  = 0;
  24. }
  25.